package com.springboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.springboot.model.po.Business;

@Mapper
public interface BusinessMapper {
	@Select("select * from business where businessId = #{businessId}")
	public Business getBusinessById(@Param("businessId")Integer businessId);
	
	@Select("select * from business where orderTypeId=#{orderTypeId} order by businessId")
	public List<Business>listBusinessByOrderTypeId(@Param("orderTypeId")Integer orderTypeId);
}
